<?php

namespace app\model;

use think\Model;

class ClassModel extends Model
{
    protected $table = "class";
    protected $pk = "class_id";
    public function userClassTable() {
        return $this->hasOne("UserClassModel","class_id","class_id");
    }
    public function classDepartmentTable() {
        return $this->hasOne("ClassDepartmentModel","class_id","class_id");
    }
}